<?php
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs.view.templates.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css('cake.generic');

		echo $scripts_for_layout;
	?>
<?php echo $html->script('jquery');?>
<?php echo $html->script('audivit');?>
<?php echo $html->meta('icon', $html->url('/favicon.ico')); ?>
<meta property="og:image" content="http://www.audivit.com/css/images/avatar.png" />
		<meta name="description" content="Listen to the music other people liked!" /> 
		<meta name="keywords" content="music, song, rock, metal, pop, electronic music" /> 
<?php echo $this->element('google_analytics'); ?>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
</head>
<body>
<div id="follow_us">
		<br />
	<?php echo $html->link($html->image("facebook_follow.png"), 'http://www.facebook.com/pages/AUDIVITcom/166762800058433',array('escape' => FALSE, 'target' => 'blank', 'id' => 'follow_on_fb', 'align' =>'right')); ?>
		<br />
	<?php echo $html->link($html->image("twitter_follow.png"), 'http://twitter.com/audivit',array('escape' => FALSE, 'target' => 'blank', 'id' => 'follow_on_twitter')); ?>
</div>

<div id="wrapper">
<div id="sitename">
<h1>
	<?php echo $html->link('AUDIV<strong>IT</strong>', array('controller'=>'songs', 'action'=> 'index'),array('escape' => FALSE)); ?>
</h1>
		</div>
		<div id="header">
<div id="nav">
	<?php if(isset($logged_in)): if ($logged_in):?>
	<span>
Welcome <?php echo $users_username; ?>!
	</span>
<?php endif;endif; ?>
			<ul>
				<li>
	<?php echo $html->link('<span>Home</span>', array('controller'=>'songs', 'action'=> 'index'),array('escape' => FALSE)); ?>
				</li>
				<li>
	<?php echo '<a href="http://trash.audivit.com" target="_blank"><span>Blog</span></a>'; ?>
				</li>
		<li>
	<?php if(isset($logged_in)): if ($logged_in):?>
	  <?php echo $html->link('<span>Logout</span>', array('controller'=>'users', 'action'=> 'logout'), array('escape' => FALSE)); ?>	
		<?php else: ?><span>
	<?php echo $html->link('<span>Register/Login</span>', array('controller'=>'users', 'action'=> 'login'),array('escape' => FALSE)); ?>
	<?php endif; endif; ?>



</span></a></li>
<li>
<a href="mailto:5aravum@gmail.com?Subject=Hello!"><span>Contact</span></a>
</li>
			</ul>
		</div>
</div>
<div id="head">
<div id="add_song">
	<?php echo $html->link($html->image("headphones.png"), array('controller'=>'songs', 'action'=> 'add'),array('escape' => FALSE)); ?>
		</div>
<div id="about">
<h2>Music chosen by you</h2>
<p>Why should you listen to boring and bad music?<br />Listen to the music other people liked!</p>
</div>
</div>
		<div id="body" class="clear">

			<?php echo $this->Session->flash(); ?>

			<?php echo $content_for_layout; ?>

		</div>
		<div id="footer">
		</div>
		</div>
</body>
</html>
